#ifndef __INCLUDE_H
#define __INCLUDE_H

#include "sys.h"

/* Interrupt Priority Management Table */
#define TIM2_IT_PRIO_PRE	1
#define TIM2_IT_PRIO_SUB	1

#define TIM3_IT_PRIO_PRE	2
#define TIM3_IT_PRIO_SUB	0

#define TIM5_IT_PRIO_PRE	2
#define TIM5_IT_PRIO_SUB	1

#define XFS5152_IT_PRIO_PRE	1
#define XFS5152_IT_PRIO_SUB	2

#define KEY_IT_PRIO_PRE		2
#define KEY_IT_PRIO_SUB		2

#define USART1_IT_PRIO_PRE	3
#define USART1_IT_PRIO_SUB	3

#define USART3_IT_PRIO_PRE	3
#define USART3_IT_PRIO_SUB	3

typedef enum {
	NOW = 0,
	LAST = 1,
	DELTA = 2,
	TIME_STATE_COUNT = 3,
}Time_State_t;

typedef enum {
	LOCK1 = 0,
	LOCK2 = 1,
	LOCK3 = 2,
	LOCK4 = 3,
	LOCK_COUNT = 4
}Lock_Names_t;

typedef enum {
	UNLOCKED = 0,
	LOCKED   = 1,
	LOCK_STATE_COUNT = 2
}Lock_State_t;

#endif

